<cfsetting enablecfoutputonly="Yes">

<!--- 
  /**
   * @author  %[EMAIL_ADDRESS]%
   * @version 1.0 - %[DATE]%
   */
--->

<cftransaction>
  <cftry>

    <cftransaction action="#request.db.s_TRANSACTION_COMMAND#" />

    <cfcatch type="database">
      <cftransaction action="rollback" />

      <cfif request.dev.b_DBUG>
        <cfdump var="#cfcatch#">
        <cfabort>
      </cfif>
      
      <!--- //
            // If we have had a database error, we will store this in the 
            // session with the name 'sStatus'. The Mireau framework will then
            // automatically display what went wrong on 'the next page'.
            //
      --->
      <cflock scope="session" timeout="5" type="exclusive">
        <cfset session.sStatus = cfcatch.message>
      </cflock>
    </cfcatch>
    
  </cftry>
</cftransaction>

<cfsetting enablecfoutputonly="No">